/* MerchantApp theme inspired by Prototype/default.css */
:root {
  --font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --text-color: #1e293b; /* slate-800 */
  --muted-text: #475569; /* slate-600 */
  --bg-page: #f8fafc;   /* slate-50 */
  --bg-card: #ffffff;
  --border-color: #e2e8f0; /* slate-200 */
  --primary: #2563eb;  /* blue-600 */
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --radius: 10rpx;
  --radius-lg: 16rpx;
  --spacing-xs: 8rpx;
  --spacing-sm: 12rpx;
  --spacing-md: 16rpx;
  --spacing-lg: 24rpx;
  --spacing-xl: 32rpx;
}

body { font-family: var(--font-family); color: var(--text-color); background-color: var(--bg-page); margin:0 }

/* Layout */
.container { padding: 24rpx; }
.row { display: flex; flex-direction: row; }
.col { display: flex; flex-direction: column; }
.center { display: flex; align-items: center; justify-content: center; }
.space-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }

/* Card */
.card { background: var(--bg-card); border: 1rpx solid var(--border-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 24rpx; }
.card-title { font-size: 30rpx; font-weight: 600; margin-bottom: 12rpx; }
.card-subtitle { color: var(--muted-text); font-size: 24rpx; }


/* Web fallback px values for key layout blocks */
.card { padding: 24px; border: 1px solid var(--border-color); border-radius: 16px }
.section { padding: 24px }
.list { border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color) }
.list-item { padding: 20px 16px; border-bottom: 1px solid var(--border-color) }

/* Section */
.section { padding: 24rpx; }
.section-title { font-size: 30rpx; font-weight: 700; margin-bottom: 16rpx; }
.toolbar{ display:flex; gap:16rpx; }
.chips{ display:flex; gap: 12rpx; flex-wrap:wrap }
.chip{ padding:10rpx 16rpx; border-radius:999rpx; border:1rpx solid var(--border-color); background:#fff; font-size:24rpx }
.chip.active{ color:#fff; background: var(--primary); border-color: var(--primary) }
.empty-state{ padding: 40rpx 0; text-align:center; color: var(--muted-text) }
.metrics-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 16rpx }
.metric-card{ padding: 20rpx; border:1rpx solid var(--border-color); border-radius: 16rpx; background:#fff }
.metric-card .value{ font-weight:700; font-size: 32rpx }
.metric-card .label{ font-size: 24rpx; color: var(--muted-text) }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border-color); background:#fff; color: var(--text-color); cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, var(--primary-600), var(--primary-700)); color: #fff; border-color: transparent; }
.btn-outline { background: #fff; }

/* Tag/Badge */
.tag { padding: 6rpx 12rpx; border-radius: 8rpx; font-size: 22rpx; }
.tag-success { background: rgba(22,163,74,.1); color: #15803d; }
.tag-warning { background: rgba(245,158,11,.1); color: #b45309; }
.tag-info { background: rgba(37,99,235,.1); color: #1d4ed8; }

/* Navbar */
.m-navbar { position: sticky; top: 0; z-index: 99; background: #fff; border-bottom: 1px solid var(--border-color); backdrop-filter: saturate(180%) blur(8px); }
.m-navbar__inner { height: 56px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; }
.m-navbar__title { font-size: 18px; font-weight: 700; }

/* List */
.list { background: var(--bg-card); border-top: 1rpx solid var(--border-color); border-bottom: 1rpx solid var(--border-color); }
.list-item { padding: 20rpx 16rpx; border-bottom: 1rpx solid var(--border-color); display: flex; align-items: center; justify-content: space-between; }
.list-item:last-child { border-bottom-width: 0; }
.list-item__label { font-size: 28rpx; }
.list-item__desc { color: var(--muted-text); font-size: 24rpx; }

/* Grid quick actions */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20rpx; }
.quick-item { background:#fff; border:1rpx solid var(--border-color); border-radius: 16rpx; padding: 24rpx; text-align:center; }
.quick-item__name { margin-top: 12rpx; font-size: 24rpx; color: var(--muted-text); }

/* Hero */
.hero-card { margin: 24rpx; padding: 36rpx; border-radius: 20rpx; background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color:#fff; box-shadow: var(--shadow); display:flex; align-items:center; justify-content: space-between; }
.hero-title{ font-size: 40rpx; font-weight: 800; letter-spacing: 1rpx; }
.hero-sub{ margin-top: 8rpx; font-size: 24rpx; opacity: .9; }

/* Metric card */
.metric { display:flex; align-items:center; }
.metric .value { font-size: 40rpx; font-weight: 700; }
.metric .label { color: var(--muted-text); font-size: 24rpx; }
.ml-auto{ margin-left: auto }

/* TabBar Safe */
.tabbar-safe{ height: 60px }

/* Quick item icon */
.quick-icon{ font-size: 40rpx }



/* Responsive layout */
@media (max-width: 1200px){
  .metrics-grid{ grid-template-columns: repeat(3, 1fr); }
  .quick-grid{ grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px){
  .metrics-grid{ grid-template-columns: repeat(2, 1fr); }
  .quick-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px){
  .metrics-grid{ grid-template-columns: 1fr; }
  .quick-grid{ grid-template-columns: repeat(2, 1fr); }
  .hero-card{ flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-card .btn{ width: 100%; text-align: center; }
  .m-navbar__inner{ height: 52px; padding: 0 12px; }
}
@media (max-width: 480px){
  .quick-grid{ grid-template-columns: 1fr; }
  .section{ padding: 16px; }
  .card{ padding: 16px; }
}

/* ===== Dashboard polish ===== */
.hero-banner{ display:flex; justify-content:space-between; align-items:center; padding:24px; border-radius:16px; background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #0ea5e9 100%); color:#fff; box-shadow: var(--shadow); }
.hero-title{ font-size: 28px; font-weight: 800; letter-spacing: .5px }
.hero-sub{ margin-top: 6px; opacity: .9 }
.hero-actions{ margin-top: 14px }
.hero-right svg{ opacity: .9 }

.stats-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 16px }
.stat-card{ background:#fff; border:1px solid var(--border-color); border-radius: 14px; padding:16px; display:flex; gap:12px; align-items:center; box-shadow: var(--shadow-sm) }
.icon-circle{ width:36px; height:36px; border-radius:999px; display:flex; align-items:center; justify-content:center; background: rgba(37,99,235,.1); color:#1d4ed8 }
.soft-blue{ background: rgba(37,99,235,.1) }
.soft-indigo{ background: rgba(99,102,241,.12) }
.soft-green{ background: rgba(16,185,129,.12) }
.soft-yellow{ background: rgba(234,179,8,.12) }
.stat-card .value{ font-size: 22px; font-weight: 700 }
.stat-card .label{ font-size: 12px; color: var(--muted-text) }

.quick-card{ background:#fff; border:1px solid var(--border-color); border-radius: 14px; padding:18px; text-decoration:none; color:inherit; display:flex; flex-direction:column; gap:8px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease }
.quick-card:hover{ transform: translateY(-2px); box-shadow: var(--shadow) }
.quick-name{ font-weight: 600 }
.quick-desc{ color: var(--muted-text); font-size: 12px }

@media (max-width: 1200px){ .stats-grid{ grid-template-columns: repeat(3, 1fr) } }
@media (max-width: 1024px){ .stats-grid{ grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 768px){ .hero-banner{ padding:16px } .stats-grid{ grid-template-columns: 1fr } }

